//@ts-ignore
import {items as stateItems, render as stateRender} from "../../../../options/system/user/state.ts";

export default [
    {
        key: "id",
        title: "ID",
        type: "text",
    },
    {
        key: "username",
        title: "用户名",
        type: "text",
        placeholder: "请输入名称",
    },
    {
        key: "password",
        title: "密码",
        type: "password",
        placeholder: "请输入名称",
        hidden: true,
    },
    {
        key: "name",
        title: "昵称",
        type: "text",
        placeholder: "请输入名称",
    },
    {
        key: "state",
        title: "状态",
        type: "select",
        placeholder: "请选择状态",
        options: stateItems,
        render: (model: any) => stateRender(model?.state),
    },
    {
        key: "remark",
        title: "备注",
        type: "textarea",
        placeholder: "请输入备注",
        width: 300,
    },
    {
        key: "created_at",
        title: "创建时间",
        type: "text",
    },
    {
        key: "updated_at",
        title: "更新时间",
        type: "text",
    },
];